<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>代码生成</title>
    <meta name="keywords" content="代码生成" />
    <meta name="description" content="代码生成" />
    <link rel="shortcut icon" href="favicon.ico" />

    <!-- 引入公共css -->
	<#include "/inc/header.ftl"/>

    <script type="text/javascript" src="/static/plugins/syntaxhighlighter/js/XRegExp.js"></script>
    <script type="text/javascript" src="/static/plugins/syntaxhighlighter/js/shCore.js"></script>
    <script type="text/javascript" src="/static/plugins/syntaxhighlighter/js/shBrushJScript.js"></script>
    <script type="text/javascript" src="/static/plugins/syntaxhighlighter/js/shBrushSql.js"></script>
    <script type="text/javascript" src="/static/plugins/syntaxhighlighter/js/shBrushXml.js"></script>
    <script type="text/javascript" src="/static/plugins/syntaxhighlighter/js/shBrushJava.js"></script>
    <script type="text/javascript" src="/static/plugins/syntaxhighlighter/js/shBrushCss.js"></script>
    <link href="/static/plugins/syntaxhighlighter/css/shCore.css" rel="stylesheet" type="text/css" />
    <link href="/static/plugins/syntaxhighlighter/css/shThemeDefault.css" rel="stylesheet" type="text/css" />
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="page-title-box">
                <p class="page-title">
                    查看模板
                </p>
                <a class="btn btn-default" href="/auto/code/template/list">返回</a>
            </div>
        </div>
    </div>
    <div class="main">
        <div class="main-padding">
            <div class="ibox-content">
                <form class="form-horizontal m-t" id="signupForm">
					<input type="hidden" name="groupId" id="groupId" value="${groupId!''}">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">模板名称：</label>
                        <div class="col-sm-8">
                            <span id="name" name="name" class="form-control">${template.name!''}</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">模板路径：</label>
                        <div class="col-sm-8">
                            <span id="path" name="path" class="form-control"  >${template.path!''}</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">文件名称：</label>
                        <div class="col-sm-8">
                            <span id="fileName" name="fileName" class="form-control">${template.fileName!''}</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">状态：</label>
                        <div class="col-sm-8">
                            <div class="switch">
                                <div class="onoffswitch margin-top-7">
                                    <input disabled type="checkbox" <#if template.status == 1>checked</#if> class="onoffswitch-checkbox" id="status" name="status">
                                    <label class="onoffswitch-label" for="status">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">模板内容：</label>
                        <div class="col-sm-8">
                            <pre class="brush:${template.type!''};toolbar:false">
                                ${template.content!''}
                            </pre>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-3">
                            <a class="btn btn-default" href="/auto/code/template/list">返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!-- 引入公共js -->
<#include "/inc/footer.ftl"/>

<!-- Page-Level Scripts -->
<script>
    $(document).ready(function() {
        SyntaxHighlighter.all();
    });
</script>
</body>
</html>


